<?php if(isset($drinks) && !empty($drinks)): 
    foreach($drinks as $drink):?>
        <div class='drink-box'>
            <?php echo anchor('drink/details/' . $drink->id, img(base_url() . $drink->get_imagePath()), ''); ?>
            <span><?php echo $drink->name; ?></span>
        </div>
    <?php endforeach; ?>
<?php else: ?>
    <div class="error">No drinks found!</div>
<?php endif; ?>

